/*
 * log.h
 *
 *  Created on: May 7, 2016
 *      Author: Alan Wang
 */

#ifndef UTIL_LOG_H_
#define UTIL_LOG_H_

#define MAX( x, y ) ( ((x) > (y)) ? (x) : (y) )	//return the max val between x and y
#define MIN( x, y ) ( ((x) < (y)) ? (x) : (y) )	//return the min val between x and y

#define LOG_DEBUG 1
#if LOG_DEBUG
    #define Log(fmt, ...) printf(fmt, __VA_ARGS__)
	#define LogStr(str) printf(str)
#else
    #define Log(fmt, ...)
	#define LogStr(str)
#endif

#endif /* UTIL_LOG_H_ */
